package org.springframework.cloud.gateway.filter.ratelimit;

import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**KeyResolver#resolve(ServerWebExchange)方法，获得请求的限流键。
 * <br/>通过实现KeyResolver接口，实现获得不同的请求的限流键，例如URL / 用户 / IP等。
 * @author Spencer Gibb
 */
public interface KeyResolver {
	Mono<String> resolve(ServerWebExchange exchange);
}
